package com.ruoyi.product.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 product
 * 
 * @author dxp
 * @date 2024-02-13
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long categoryId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 描述 */
    @Excel(name = "描述")
    private String intro;

    /** 图片 */
    @Excel(name = "图片")
    private String picture;

    /** 原价 */
    @Excel(name = "原价")
    private Long price;

    /** 现价 */
    @Excel(name = "现价")
    private Long sellingPrice;

    /** 库存 */
    @Excel(name = "库存")
    private Long num;

    /** 销量 */
    @Excel(name = "销量")
    private Long sales;

    /** 是否展示 */
    @Excel(name = "是否展示")
    private Long isHomeshow;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 商品图片信息 */
    private List<ProductPicture> productPictureList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setSellingPrice(Long sellingPrice) 
    {
        this.sellingPrice = sellingPrice;
    }

    public Long getSellingPrice() 
    {
        return sellingPrice;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setSales(Long sales) 
    {
        this.sales = sales;
    }

    public Long getSales() 
    {
        return sales;
    }
    public void setIsHomeshow(Long isHomeshow) 
    {
        this.isHomeshow = isHomeshow;
    }

    public Long getIsHomeshow() 
    {
        return isHomeshow;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public List<ProductPicture> getProductPictureList()
    {
        return productPictureList;
    }

    public void setProductPictureList(List<ProductPicture> productPictureList)
    {
        this.productPictureList = productPictureList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("categoryId", getCategoryId())
            .append("title", getTitle())
            .append("intro", getIntro())
            .append("picture", getPicture())
            .append("price", getPrice())
            .append("sellingPrice", getSellingPrice())
            .append("num", getNum())
            .append("sales", getSales())
            .append("isHomeshow", getIsHomeshow())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("productPictureList", getProductPictureList())
            .toString();
    }
}
